﻿using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Tasks;

namespace Test
{
    class Program
    {
        private static SortedDictionary<string, int> m_WorkStation = new SortedDictionary<string, int>();
        static void Main(string[] args)
        {

            var vceSat = 12.2222233;
            vceSat = Math.Round(vceSat, 2);


            var kkk = Math.Abs(-0.1199);

            var cccc = Convert.ToInt32(3.0) * 1000;

            try
            {
                List<string> list = null;

                list.Add("aaa");
            }
            catch (Exception ex)
            {
                var ss = ex.ToString();
            }


            var inputerstr = "1_V";//ABC#123@AS测试
            var result1 = Regex.Replace(inputerstr, @"[^0-9]+", "");

            for (int i = 0; i < 10; i++)
            {
                m_WorkStation.Add(DateTime.Now.ToString(), i);

                Thread.Sleep(1000);
            }

            foreach (var item in m_WorkStation)
            {
                Console.WriteLine(item.Key);
                Console.WriteLine(item.Value);
                Console.WriteLine("----------");
            }

            //Thread t = new Thread(() =>
            //{
            //    Console.WriteLine("1");
            //    Console.WriteLine("线程结束");
            //    Console.ReadLine();
            //});
            //// 摘要:
            ////     获取或设一个值，该值指示某个线程是否为后台线程。
            ////
            //// 返回结果:
            ////     如果此线程为或将成为后台线程，则为 true；否则为 false。
            // t.IsBackground = true;//主程序结束后，线程随之结束【日常要用到的】
            //                       //  t.IsBackground = false;//主程序结束后，线程不会随之结束
            //t.Start();
            //Console.WriteLine("主线程完毕！");

            //Console.ReadKey();
        }
    }
}
